<html>
<head>
  <script src="../lib/OpenLayers.js"></script>
  <script type="text/javascript"><!--
    var marker; 
    
    function test_01_Marker_constructor (t) {
        t.plan( 5 );
        marker = new OpenLayers.Marker(new OpenLayers.LonLat(2,1),new OpenLayers.Icon());
        t.ok( marker instanceof OpenLayers.Marker, "new OpenLayers.Marker returns Marker object" );
        t.ok( marker.icon instanceof OpenLayers.Icon, "new marker.Icon returns Icon object" );
        t.ok( marker.lonlat instanceof OpenLayers.LonLat, "new marker.lonlat returns LonLat object" );
        t.eq( marker.lonlat.lon, 2, "marker.lonlat.lon returns correct lon" );
        t.eq( marker.lonlat.lat, 1, "marker.lonlat.lat returns correct lat" );
    }


  // -->
  </script>
</head>
<body>
</body>
</html>
